package com.chuanke.ckfamily.dao.finance;
import com.chuanke.ckfamily.dao.finance.model.GainPacket;
import com.weijie.core.BaseDao;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface GainPacketDao extends BaseDao<GainPacket> {

    GainPacket findGainRecord(@Param("param") Map<String, Object> param);



    List<GainPacket> findRecords(@Param("pid") Long pid);

    List<Map> findHistory(@Param("param")Map<String, Object> param);

    Long sumHistory(@Param("uid")Long uid);

    Long countHistory(@Param("uid")Long uid);

    void addList(@Param("list") List<GainPacket> list);
}